package com.cy.store.service.impl;

import com.cy.store.entity.Areas;
import com.cy.store.mapper.AreasMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 */
@Service
public class AreasService {
    @Autowired
    private AreasMapper areasMapper;

    /* 根据城市编码查询区域 */
    public List<Areas> getAreasByCityCode(String cityCode) {
        return areasMapper.selectByCityCode(cityCode);
    }
}
